package com.zhj.common.core.result;

import com.zhj.common.db.mysql.page.BasePageResult;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author zhj
 */
@Data
@Accessors(chain = true)
public class Result<T> extends BasePageResult {

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 消息
     */
    private String msg;

    /**
     * 返回数据
     */
    private T data;

    public Result(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
